package com.yan.demo3;

import java.lang.annotation.Inherited;

/**
 * @author taoge
 * @Date 2024/8/15 9:49
 * @Description  @Inherited  可以被继承的注解
 */
public class Demo3 {
    public static void main(String[] args) {

    }
}

@Pig
class Fu{

}

class Zi extends Fu{

}

@Inherited
@interface Pig{

}

